<?php
namespace Base\ConstDir;
class BaseConst
{
    const SUCCESS = 0;
    const ERROR = -1;

    // receive car addr
    const NORMAL_RECEIVE_CAR_ADDR = 0;
    const DEFAULT_RECEIVE_CAR_ADDR = 1;

    // product
    const DEFAULT_CATEGORY_PRODUCT = 1;

    // order
    const ORDER_STATUS_CANCELED_NO_REFUND = -2;
    const ORDER_STATUS_CANCELED = -1;
    const ORDER_STATUS_WAIT_PAY = 0;
    const ORDER_STATUS_PAID_DEPOSIT = 1;
    const ORDER_STATUS_PAID = 2;
    const PAY_STATUS_CANCELED_NO_REFUND = -2;
    const PAY_STATUS_CANCELED = -1;
    const PAY_STATUS_WAIT_PAY = 0;
    const PAY_STATUS_PAID = 1;
    const PAY_TYPE_RECHARGE = 1;
    const PAY_TYPE_ALI = 2;
    const PAY_TYPE_UNION = 3;
    const PAY_TYPE_MERCHANT = 4;
    const ORDER_GENERATE_TYPE_PAY = 1;
    const ORDER_GENERATE_TYPE_GIFT = 2;
    const ORDER_GENERATE_TYPE_RECHARGE = 3;
    const PAY_GENERATE_TYPE_ORDER = 1;
    const PAY_GENERATE_TYPE_GIFT = 2;
    const PAY_GENERATE_TYPE_RECHARGE = 3;
    static $payType = array(
        self::PAY_TYPE_RECHARGE => "余额支付",
        self::PAY_TYPE_ALI => "支付宝支付",
        self::PAY_TYPE_UNION => "银联支付",
        self::PAY_TYPE_MERCHANT => "招行支付",
    );
    const ORDER_TYPE_NORMAL = 1;
    const ORDER_TYPE_DEPOSIT = 2;
    const ORDER_TYPE_BALANCE = 3; //尾款
    const ORDER_TYPE_RECHARGE = 4;
    const ORDER_TYPE_SCHEME = 5;
    
    static $orderType = array(
    	self::ORDER_TYPE_NORMAL => '普通订单',
    	self::ORDER_TYPE_DEPOSIT => '订金订单',
    	self::ORDER_TYPE_BALANCE => '尾款订单',
    	self::ORDER_TYPE_RECHARGE => '充值订单',
    	self::ORDER_TYPE_SCHEME => '方案订单',
    
    );
    
    static $orderStatus = array(
        self::ORDER_STATUS_CANCELED_NO_REFUND => '已取消',
        self::ORDER_STATUS_CANCELED => '已退款',
        self::ORDER_STATUS_WAIT_PAY => '未支付',
        self::ORDER_STATUS_PAID_DEPOSIT => '已支付订金, 待付尾款',
        self::ORDER_STATUS_PAID => '已支付全款'
    );

    // bonus
    const BONUS_STATUS_DISABLE = 1;
    const BONUS_STATUS_ENABLE = 0;
    const CODE_STATUS_DISABLE = 0;
    const CODE_STATUS_ENABLE = 1;
    const CODE_STATUS_USED = 2;
    const CODE_STATUS_ACTIVATION = 3;
    const BONUS_CATEGORY_TYPE_USE = 1;
    const BONUS_CATEGORY_TYPE_EXCHANGE = 2;

    // upload
    const UPLOAD_PARAMETER_ERROR = -100;
    const UPLOAD_PARAMETER_ERROR_MSG = '上传参数错误';
    const UPLOAD_FILE_EXT_NOT_VALID = -101;
    const UPLOAD_FILE_EXT_NOT_VALID_MSG = '上传文件后缀不合法';

    // invite
    const INVITE_STRATEGY_ENABLE = 1;
    const INVITE_STRATEGY_DISABLE = 0;

    // case
    const CASE_STATUS_CANCELED = -1;
    const CASE_STATUS_NOT_ACCEPTED = 0;
    const CASE_STATUS_ACCEPTED = 1;
    const CASE_STATUS_SA_ROAD = 2;
    const CASE_STATUS_LEAVE_CAR = 3;
    const CASE_STATUS_SERVING = 4;
    const CASE_STATUS_RETURNING_CAR = 5;
    const CASE_STATUS_DONE = 6;
    const CASE_TEST_STATUS_NOT_NEED= 0;
    const CASE_TEST_STATUS_NEED= 1;
    const CASE_TEST_STATUS_ACCEPTED = 2;
    const CASE_TEST_STATUS_NOT_ACCEPTED = 3;
    const CASE_HAS_NOT_PAID_SCHEME = -1;
    const CASE_HAS_NOT_PAID_SCHEME_TEXT = '您有订单待支付';
    const CASE_NOT_EVALUATE = -2;
    const CASE_NOT_EVALUATE_TEXT = '服务为您节约{$time}小时';

    static $caseStatus = array(
        self::CASE_STATUS_CANCELED => '受理已取消',
		self::CASE_STATUS_NOT_ACCEPTED => '等待受理',
		self::CASE_STATUS_ACCEPTED => '已受理',
		self::CASE_STATUS_SA_ROAD => '车管家已上路',
		self::CASE_STATUS_LEAVE_CAR => '正在前往门店',
		self::CASE_STATUS_SERVING => '到店服务中',
		self::CASE_STATUS_RETURNING_CAR => '正在还车途中',
		self::CASE_STATUS_DONE => '服务完成',
	);

    // setting
    const SETTING_STATUS_ENABLE = 1;
    const SETTING_STATUS_DISABLE = 0;

    // member message
    const MEMBER_MESSAGE_STATUS_NOT_READ = 0;
    const MEMBER_MESSAGE_STATUS_READ = 1;
    const MEMBER_MESSAGE_STATUS_DEL = 2;
    
    static $sexArr = array('女','男','其他');
    static $payStatus = array(
        self::PAY_STATUS_CANCELED_NO_REFUND => '已取消',
        self::PAY_STATUS_CANCELED => '已退款',
        self::PAY_STATUS_WAIT_PAY => '未付款',
        self::PAY_STATUS_PAID => '已付款',
    );
    static $generateType = array('1'=>'正常支付','2'=>'赠送');
    static $testStatus = array('不需要体检','未体检','已通过','未通过');


    //体检
    const ORDER_TEST_NO = 0;
    const ORDER_TEST_NEED = 1;
    const ORDER_TEST_PASS_YES = 2;
    const ORDER_TEST_PASS_NO = 3;
    
    static $testStatusArr = array(
    	self::ORDER_TEST_NO => '无需体检订单',
    	self::ORDER_TEST_NEED => '体检订单',
    	self::ORDER_TEST_PASS_YES => '体检通过',
    	self::ORDER_TEST_PASS_NO => '未通过体检'
    );

    
    const CAR_TEST_SERVICE_NAME = '保前验车';

    
    //结算
    const SUPPLIER_SETTLE_READY = 0;
    const SUPPLIER_SETTLE_OK = 1;
    const SUPPLIER_SETTLE_PAY = 2;
    static $settleStatus = array(
    	self::SUPPLIER_SETTLE_READY => '未审核',
    	self::SUPPLIER_SETTLE_OK => '审核',
    	self::SUPPLIER_SETTLE_PAY => '打款完毕'
    );

    const CITY_STATION_HANGZHOU = 1;
    const ANDROID_SYSTEM = 1;
    const IOS_SYSTEM = 2;
    const INVITE_TEXT = '分享邀请码, 邀请好友, 有好礼';
    const INVITE_URL = 'http://wap.chemayi.com/active/share.html?code=';
    const INVITE_URL_TITLE = "谁说一定要买车险，干嘛花那个冤枉钱！";
    const INVITE_URL_CONTENT = '输入邀请码%s，告别高额保费，蚂蚁车保有减还有送，省钱更省心！';
    const INVITE_URL_LOGO = 'http://cgj.chemayi.com/img/cgjlogo.jpg';

    const DEFAULT_RECHARGE_SOURCE = '余额充值';
    const RECHARGE_MONEY_NOT_ENOUGH = '余额不足以支付订单余额抵扣金额, 第三方支付金额转入余额';

    const DEFAULT_COMMENT = '默认好评';
    
    const MEMBER_COMMON_ADDR_COUNT_LIMIT = 10;

    const AD_STATUS_ENABLE = 1;
    const AD_STATUS_DISABLE = 0;

    const MEMBER_STATUS_ENABLE = 1;
    const MEMBER_STATUS_DISABLE = 0;

    const EQQ_STATUS_ACTIVATION = 1;
    const EQQ_STATUS_NON_ACTIVATION = 0;

    const DIANRU_STATUS_NON_ACTIVATION = 0;
    const DIANRU_STATUS_ACTIVATION = 1;

    const ALIPAY_SUBJECT = '车蚂蚁';

    const SOURCE_PLATEFORM_WAP = 'wap';
}
